<?php

// 业务里面使用的所以错误信息的配置文件
$errorCode = [
    //常用[10000~10050]
    'systemError' => ['code' => 10000, 'message' => '系统异常'],
    'paramsError' => ['code' => 10001, 'message' => '参数错误'],
    'insertError' => ['code' => 10002, 'message' => '新增失败'],
    'updateError' => ['code' => 10003, 'message' => '更新失败'],
    'loginAuthError' => ['code' => 10004, 'message' => '验证login_token失败'],

    // 获取sso错误[10051~10100]
    'registerError' => ['code' => 10051, 'message' => '注册失败'],
    
    'loginError' => ['code' => 10061, 'message' => '登录失败'],

    // 用户信息错误[10101-10150]
    'userError' => ['code' => 10101, 'message' => '用户信息错误'],
    
    // 产品信息错误[10151-10200]
    'bxError' => ['code' => 10151, 'message' => '产品信息错误'],
];

return $errorCode;